{% extends 'oratk_app/master.html' %}
{#{% block tag_left %}#}
{#    {% include 'oratk_app/tag_left_user.html' %}#}
{#{% endblock %}#}
{% block title %}
    <title>{{ select_name }}</title>
{% endblock %}
{% block tag_left %}
    <h3>&nbsp数据库信息</h3>
    <h5>&nbsp{{ dbname }}</h5>
    <h5>&nbsp{{ select_conn_string }}</h5>
    <h3>&nbspsql信息</h3>
     <h5>&nbsp{{ sqltext }}</h5>
{#    <h3>&nbsp查询项</h3>#}
{#    <h4>&nbsp{{ select_name }} </h4>#}
    <h3>&nbsp查询结果为： </h3>
{% endblock %}
{% block userinfo %}
    <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
        <div class="table-responsive" >
            <table class="table table-striped table-bordered table-hover">
                <thead>
                <tr>
                    {% for col_name in columns %}
                        <th>{{ col_name }}</th>
                    {% endfor %}
                </tr>
                </thead>
                <tbody>
                {%   for i in result %}
                    <tr>
                        {% for col_value in i %}
                            <td>{{ col_value }}</td>
                        {% endfor %}
                    </tr>
                {%  endfor %}
                </tbody>
            </table>
        </div>
    </div>
{% endblock %}

